package com.rency.mtds.manager.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: caiyu.ren
 * Created on 2019/9/3 10:20
 * @version: V1.0.0
 * @since JDK 11
 */
@Getter
@Setter
@ToString(exclude = "dsPasswd")
@TableName("t_data_source")
public class DataSourcePO implements Serializable {

    @TableId(value = "ID",type = IdType.AUTO)
    private Long id;

    @TableField("APP_ID")
    private String appId;

    @TableField("APP_NAME")
    private String appName;

    @TableField("DB_TYPE")
    private String dbType;

    @TableField("MS_KIND")
    private String msKind;

    @TableField("DS_TYPE")
    private String dsType;

    @TableField("DS_DRIVER")
    private String dsDriver;

    @TableField("DS_URL")
    private String dsUrl;

    @TableField("DS_USER")
    private String dsUser;

    @TableField("DS_PASSWD")
    private String dsPasswd;

    @TableField("DS_PROPERTIES")
    private String dsProperties;

    @TableField("DS_CONNECT_PROP")
    private String dsConnectProperties;

    @TableField("ENABLE")
    private String enable;

    @TableField("GMT_MODIFIED")
    private LocalDateTime gmtModified;

    @TableField("GMT_CREATE")
    private LocalDateTime gmtCreate;
}
